package com.platform.web.mapper;


import com.platform.web.model.Permission;

import java.util.List;
import java.util.Map;

/**
 * 权限Mapper类
 * 
 * @author LiangMingHui
 *
 */
public interface PermissionMapper {

	int deleteByPrimaryKey(String id);

	int deleteBatchByIds(List<String> ids);

	int deleteBatchRolePerByIds(List<String> ids);

	int insert(Permission record);

	int insertSelective(Permission record);

	int updateByPrimaryKeySelective(Permission record);

	int updateByPrimaryKey(Permission record);

	Permission selectByPrimaryKey(String id);

	List<Permission> selectPermissionByPage(Map<String, Object> map);

	List<Permission> selectPermissionByParentId(String modeulCode);

	List<Permission> selectAllPermissionList();

	int getPermissionCount(Permission record);

	int getRolePermissionCount(List<String> ids);

}